<%--
  Created by IntelliJ IDEA.
  User: wchen
  Date: 2017/6/24
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link rel="shortcut icon" href="/static/css/favicon.ico" type="image/x-icon" />
<html>

  <head>

  </head>
  <body>
  <%--基于代码的logout--%>
    Dear <strong>${user}</strong>, Welcome to spring com.ssm.security Page.
    <a href="<c:url value="/logout" />">Logout</a>

    <h1>${title}</h1>
    <h1>${message}</h1>
  <%--基于web的logout--%>
    <c:if test="${pageContext.request.userPrincipal.name != null}">
      <h2>欢迎 : ${pageContext.request.userPrincipal.name} | <a href="<c:url value="/j_spring_security_logout" />" > Logout</a></h2>
    </c:if>


  </body>
</html>
